import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入全局css
import '@/assets/css/global.css'
//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入element-plus-icon 取别名为ellcons 然后按需导入图标名
import * as Ellcons from '@element-plus/icons-vue'
//国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//request
import request from './utils/request'


import 'default-passive-events'




//market
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import '@kangc/v-md-editor/lib/theme/style/github.css';



const app = createApp(App);

 app.use(store)
    .use(router)
    .use(ElementPlus, {locale: zhCn})
    .component('edit',Ellcons.Edit)
    .component('arrow-down',Ellcons.ArrowDown )
    .mount('#app')
app.use(VMdPreview);

 app.config.globalProperties.request = request;
